package com.ledi.guns.common.persistence.model;

import java.io.Serializable;
import java.util.Date;

import lombok.Data;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

/**
 * <p>
 * 短信发送情况
 * </p>
 *
 * @author zhongxp
 * @since 2018-07-18
 */
@TableName("t_sms_send")
@Data
public class SmsSend extends Model<SmsSend> {

	private static final long serialVersionUID = 1L;

	@TableId(value = "id", type = IdType.AUTO)
	private Long id;
	/**
	 * 班级id
	 */
	@TableField("class_id")
	private Long classId;
	/**
	 * 班级
	 */
	@TableField("class_name")
	private String className;
	/**
	 * 发送对象
	 */
	@TableField("send_name")
	private String sendName;
	/**
	 * 手机号
	 */
	private String mobile;
	/**
	 * 发送状态（0，失败，1成功）
	 */
	private Integer status;
	@TableField("create_time")
	private Date createTime;
	@TableField("creator_role")
	private String creatorRole;
	@TableField("creator_id")
	private Long creatorId;
	/**
	 * 创建人
	 */
	@TableField("creator_name")
	private String creatorName;

	@TableField("false_message")
	private String falseMessage;

	/**
	 * 学生学校ID
	 */
	@TableField("school_id")
	private Long schoolId;

	@Override
	protected Serializable pkVal() {

		return id;
	}

}
